// 居民基础信息 - 需要权限控制的菜单
const residentJurisdictionRoutes = [
  {
    path: '/resident',
    name: 'resident',
    meta: {
      title: '居民基础信息'
    },
    component: () => import('@/views/Resident')
  },
  // 居民基础信息更新
  {
    path: '/resident/update',
    name: 'resident-update',
    meta: {
      title: '居民基础信息更新'
    },
    component: () => import('@/views/Resident/Update')
  },
  // 居民基础信息审核
  {
    path: '/resident/audit',
    name: 'resident-audit',
    meta: {
      title: '居民基础信息审核'
    },
    component: () => import('@/views/Resident/Audit')
  },
  // 居民基础信息采集/更新
  {
    path: '/resident/collection',
    name: 'resident-collection',
    meta: {
      title: '居民基础信息采集'
    },
    component: () => import('@/views/Resident/Collection')
  },
  // 居民基础信息记录
  {
    path: '/resident/record',
    name: 'resident-record',
    meta: {
      title: '居民基础信息记录'
    },
    component: () => import('@/views/Resident/Record')
  }
]

// 居民基础信息 - 不需要权限控制的菜单
const residentWhiteRoutes = [
  // 居民基础信息更新
  {
    path: '/resident/update/list',
    name: 'resident-update-list',
    meta: {
      title: '居民基础信息更新'
    },
    component: () => import('@/views/Resident/Update/list')
  },
  // 居民基础信息审核
  {
    path: '/resident/audit/list',
    name: 'resident-audit-list',
    meta: {
      title: '居民基础信息审核列表'
    },
    component: () => import('@/views/Resident/Audit/list')
  },
  {
    path: '/resident/audit/reject',
    name: 'resident-audit-reject',
    meta: {
      title: '居民基础信息审核驳回'
    },
    component: () => import('@/views/Resident/Audit/reject')
  },
  // 居民基础信息采集/更新
  {
    path: '/resident/collection/person',
    name: 'resident-collection-person',
    meta: {
      title: '人员采集'
    },
    component: () => import('@/views/Resident/Collection/person')
  },
  {
    path: '/resident/collection/partyOrganization',
    name: 'resident-collection-partyOrganization',
    meta: {
      title: '党组织登记'
    },
    component: () => import('@/views/Resident/Collection/partyOrganization')
  },
  {
    path: '/resident/collection/pet',
    name: 'resident-collection-pet',
    meta: {
      title: '宠物采集'
    },
    component: () => import('@/views/Resident/Collection/pet')
  },
  {
    path: '/resident/collection/car',
    name: 'resident-collection-car',
    meta: {
      title: '车辆采集'
    },
    component: () => import('@/views/Resident/Collection/car')
  },
  {
    path: '/resident/collection/company',
    name: 'resident-collection-company',
    meta: {
      title: '单位采集'
    },
    component: () => import('@/views/Resident/Collection/company')
  },
  {
    path: '/resident/collection/organization',
    name: 'resident-collection-organization',
    meta: {
      title: '组织采集'
    },
    component: () => import('@/views/Resident/Collection/organization')
  },
  // {
  //   path: '/resident/collection/personspecial',
  //   name: 'resident-collection-personspecial',
  //   meta: {
  //     title: '特殊人员更新'
  //   },
  //   component: () => import('@/views/Resident/Collection/personSpecial')
  // },
  // {
  //   path: '/resident/collection/personcare',
  //   name: 'resident-collection-personcare',
  //   meta: {
  //     title: '关爱人员更新'
  //   },
  //   component: () => import('@/views/Resident/Collection/personCare')
  // },
  // {
  //   path: '/resident/collection/personteenagers',
  //   name: 'resident-collection-personteenagers',
  //   meta: {
  //     title: '重点青少年更新'
  //   },
  //   component: () => import('@/views/Resident/Collection/personTeenagers')
  // },
  {
    path: '/resident/collection/house',
    name: 'resident-collection-house',
    meta: {
      title: '房屋更新'
    },
    component: () => import('@/views/Resident/Collection/house')
  },
  // 居民基础信息详情
  {
    path: '/resident/detail/person',
    name: 'resident-detail-person',
    meta: {
      title: '居民基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/person')
  },
  {
    path: '/resident/detail/pet',
    name: 'resident-detail-pet',
    meta: {
      title: '宠物基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/pet')
  },
  {
    path: '/resident/detail/car',
    name: 'resident-detail-car',
    meta: {
      title: '车辆基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/car')
  },
  {
    path: '/resident/detail/house',
    name: 'resident-detail-house',
    meta: {
      title: '房屋基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/house')
  },
  {
    path: '/resident/detail/company',
    name: 'resident-detail-company',
    meta: {
      title: '单位基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/company')
  },
  {
    path: '/resident/detail/organization',
    name: 'resident-detail-organization',
    meta: {
      title: '组织基础信息详情'
    },
    component: () => import('@/views/Resident/Detail/organization')
  }
]

// 居民基础信息 - 菜单
const residentRoutes = [...residentJurisdictionRoutes, ...residentWhiteRoutes]

export { residentJurisdictionRoutes, residentWhiteRoutes, residentRoutes }
